import json
import os.path
import requests
from lxml import etree

url = 'https://www.douyin.com/user/MS4wLjABAAAAaGyXRuuryJ1ILuLEhVxa3shoK9-qHVahEVIF00CSLpg?from_tab_name=main&modal_id=7527925464984620303'
header = {
'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36',
'referer':'https://blog.sina.com.cn/s/articlelist_32230282_1_1.html'
}


session = requests.session()
response = session.get(url,headers=header)
response.encoding = 'utf8'

if not os.path.exists('LINN图片集'):
    os.mkdir('LINN图片集')

tree = etree.HTML(response.text)
print(str(response.text))